package top.huhuiyu.p3;

public class BoxShop {

    public static void main(String[] args) {
        Box box = new Box();
        box.setOwner("黑暗骑士");

        System.out.println(box);

        Box box1 = new Box(10, 11, 12);
        System.out.println(box1);

        Box box2 = new Box();
        box2.setLength(20);
        box2.setWidth(21);
        box2.setHeight(22);
        box2.setOwner("DarkKnight");
        System.out.println(box2);
        // static的变量以及方法都是通过类调用，而不是具体的对象
        System.out.println("盒子的总数：" + Box.getCount());

    }

}
